# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-grapheme
pkgver=0.6.0
pkgrel=3
pkgdesc="Unicode grapheme helpers"
url="https://github.com/alvinlindstam/grapheme"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/g/grapheme/grapheme-$pkgver.tar.gz"
builddir="$srcdir/grapheme-$pkgver"
options="!check" # no tests in pypi version | GH tags not consistent | disable tests for now

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
51416f601ae255f16da551c626481e588aadf2884f82c0b189325d69fb300feb635310d2fdf2d4585e69ac28f98eb47836015be1054de3d351f29e19b52a1a27  py3-grapheme-0.6.0.tar.gz
"
